home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
CineMatte.ifx
< prev
next >
Wrap
Text File
|
1996-03-02
|
1KB
|
48 lines
/*
* CineMatte.ifx
* Written by Thomas Krehbiel
*
* AutoFX script to run the CineMatte hook.
*
* Inputs:
* Word(Arg(1),1) = Frame number (1 - N)
* Word(Arg(1),2) = Main filename ("-" if not specified)
* Word(Arg(1),3) = Swap filename ("-" if not specified)
* Word(Arg(1),4) = Sequence number
* Word(Arg(1),5) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_CineMatte_'
framenum = Word(Arg(1),1)
mainname = Word(Arg(1),2)
swapname = Word(Arg(1),3)
seqnum = Word(Arg(1),4)
framemax = Word(Arg(1),5)
colors = GETCLIP(base||'Colors')
output = GETCLIP(base||'Output')
drange = GETCLIP(base||'DRange')
darken = GETCLIP(base||'Darken')
lighten = GETCLIP(base||'Lighten')
IF colors = 0 THEN colors = 'BlueScreen'
ELSE IF colors = 1 THEN colors = 'GreenScreen'
IF output = 0 THEN output = 'OutputMatte'
ELSE IF output = 1 THEN output = 'OutputComposite'
ELSE IF output = 2 THEN output = 'OutputBoth'
IF drange = 0 THEN drange = ''
ELSE IF drange = 1 THEN drange = 'DynamicRange'
Hook CineMatte colors output drange 'Darken' darken 'Brighten' lighten
EXIT